import {
	myRequest
} from '@/utils/request.js'
/**
 * 分页查询
 */
export const getPage = (obj) => {
	return myRequest({
		url: '/mallapi/goodsspu/page',
		method: 'get',
		data: obj,
		showLoading: true
	});
}
/**
 分页查询用户评价
 */
export const getUserPage = (obj) => {
	return myRequest({
		url: '/mallapi/goodsspu/user-page',
		method: 'get',
		data: obj,
		showLoading: true
	});
}

/**
 * 通过id查询
 */
export const getById = (id) => {
	return myRequest({
		url: '/mallapi/goodsspu/' + id,
		method: 'get',
		showLoading: true
	});
}
